#ifndef _RINGBUFFER_H
#define _RINGBUFFER_H
#include "stm32f10x.h" 

#define BUFFER_MAX 160

typedef struct{
	unsigned int headPosition;
	unsigned int tailPosition;
	int ringBuf[BUFFER_MAX];
	
}ringBuffer_t;
extern ringBuffer_t QUEUE_BUFFER;
extern ringBuffer_t QUEUE_IP_POSITION_BUF;
void RingBuf_Write(int data);
unsigned char RingBuf_Read(int* Data);
unsigned char VoltageSend(void);
void stop(void);
#endif


